﻿using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TouchScreen.Ex
{
    public partial class ExPanel : UserControl
    {
        public ExPanel()
        {
            InitializeComponent();
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
            SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲   消除panel屏幕闪烁
        }

        public ExPanel(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }
    }
}
